#coding:utf-8
import sys

import os
import web
reload(sys)
sys.setdefaultencoding('utf8')
d = os.path.dirname(__file__)
sys.path.insert(0, d)
import sinaweibo

urls = (
        '/', 'sinaweibo.index',
        '/api/(.*)', 'sinaweibo.autho',


        )
app = web.application(urls, globals())



application = app.wsgifunc()


#
if __name__ == '__main__':
    application.run()

